< previous page page_358 next page >

Page 358
appropriate curve. While the curve is displayed, you can use the mouse to drag the control points and change the curve. If you click the New button, the program clears the screen and lets you select a new set of control points.
You can check the Show Control Points check box to make the program display the control points. Check the Show t Values check box to make the program mark the positions on the curve where t has an integer value. Use the K text box to change the smoothness of the curve.
Closed B-Splines
To create a closed B-spline like the one shown in Figure 11.23, you can use a set of knot values and blending functions that produce a uniform periodic B-spline. Unlike the blending functions for an open B-spline, these blending functions all look the same and are all symmetrical. They have the general form of function B2,3(t) shown in Figure 11.21. You can generate functions of this shape by setting the knot values to:
e10a6a0a59f035e870d90cca05b85fce.gif
Knot(i) = i
You can then make the function B0,k(t) similar to its previous definition.
e10a6a0a59f035e870d90cca05b85fce.gif
B0,1(t) =
     1         if Knot(0) <= t < Knot(1)
     1         if Knot(0) <= t <= Knot(1) and t = N - k + 2
     0         otherwise

B
0,k(t) =      (t - Knot(0)) * B0,k-1(t) / (Knot(k - 1) - Knot(0)) +
  (Knot(k) - t) * B
1,k-1(t) / (Knot(k) - Knot(1)
z0378-02.gif
Figure 11.23
A closed B-spline.

 
< previous page page_358 next page >